package com.imot.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 故障信息表
 * </p>
 *
 * @author wangjiah
 * @since 2023-11-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ema_error_record")
@ApiModel(value="EmaErrorRecord对象", description="故障信息表")
public class EmaErrorRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "设备名称")
    private String deviceName;

    @ApiModelProperty(value = "故障位置")
    private String errorLocation;

    @ApiModelProperty(value = "故障类别")
    private String errorType;

    @ApiModelProperty(value = "故障等级")
    public Integer faultLevel;

    @ApiModelProperty(value = "诊断时间")
    private LocalDateTime date;

    @ApiModelProperty(value = "诊断故障码")
    private String errorCode;

    @ApiModelProperty(value = "故障诊断结论")
    private String errorResult;

    @ApiModelProperty(value = "故障确认")
    private String errorHandledFlag;

    @ApiModelProperty(value = "设备信息表的逻辑外键")
    private Integer emaRecordId;

    @ApiModelProperty(value = "设备目标参数id，逻辑外键")
    private Integer targetParametersId;

    @ApiModelProperty(value = "故障模式")
    private String errorPattern;

    @ApiModelProperty(value = "作动次数")
    private Integer actuationCount;

    @ApiModelProperty(value = "设备一周运行时长")
    private Float deviceRuntime;

    @ApiModelProperty(value = "错误参数")
    private String errorParameters;

    @ApiModelProperty(value = "余度状态")
    private String balanceStatus;


}
